/*
 * StudentSession
 * Enroll and drop classes Buisness APIs
 */
package edu.depaul.se.courseregistration.sessionbean;

import edu.depaul.se.courseregistration.jpa.schedule.EnrolledClass;
import edu.depaul.se.courseregistration.jpa.schedule.Schedule;
import java.util.List;
import javax.ejb.EJB;
import javax.ejb.LocalBean;
import javax.ejb.Stateless;
/**
 *
 * @author Group2
 */
@Stateless
@LocalBean

public class StudentSession  {
    
    @EJB
    StudentEJB studentEJB;

    //@Override
    public int EnrollCourse(int sectionId, int personId){
        return studentEJB.EnrollCourse(sectionId, personId);
    }
    //@Override
      public int dropCourse(int sectionId, int personId){
          return studentEJB.dropCourse(sectionId, personId);
    }
    //@Override    
       public String getClassGradebyStudentId(int  sectionId, int personId){
        return studentEJB.getClassGradebyStudentId(sectionId, personId);
    }
     
     //@Override
     public List < EnrolledClass > getSchedule(int personId){
      return studentEJB.getSchedule(personId);
    }
    
}
